Page({
  data: {
    cart: []
  },

  onLoad: function() {
    const cart = wx.getStorageSync('cart') || [];
    this.setData({
      cart: cart
    });
  },

  checkout: function() {
    wx.showToast({
      title: '结算功能尚未实现',
      icon: 'none'
    });
  }
});
